import { request2 } from '/@/utils/request';

// 客户用户列表接口
export const getUserList = () => {
  return request2({
    url: '/api/warehouse/userList',
    method: 'get',
  });
};

// 部门列表接口
export const getDepartmentList = () => {
  return request2({
    url: '/api/warehouse/departmentList',
    method: 'get',
  });
};

// 客户用户列表数据类型
export interface UserListItem {
  id: number;
  name: string;
  code?: string;
  phone?: string;
  email?: string;
  address?: string;
  status?: boolean;
}

// 部门数据类型
export interface DepartmentItem {
  value: string;
  label: string;
}
